// package com.ynet.middleground.approve.identity;
//
// import java.util.ArrayList;
// import java.util.List;
//
// import org.activiti.engine.impl.interceptor.SessionFactory;
// import org.activiti.spring.SpringProcessEngineConfiguration;
// import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer;
// import org.springframework.beans.factory.annotation.Autowired;
// import org.springframework.context.annotation.Configuration;
//
/// **
// * @author liulx
// * @description 向流程引擎中注册自定用户配置信息
// * @date 2019-11-27 00:11
// */
// @Configuration
// public class ActivitiConfiguration implements ProcessEngineConfigurationConfigurer {
//
// @Autowired
// private CustomUserEntityManagerFactory customUserEntityManagerFactory;
//
// @Autowired
// private CustomGroupEntityManagerFactory customGroupEntityManagerFactory;
//
// @Autowired
// private CustomUserEntityManager customUserEntityManager;
//
// @Autowired
// private CustomGroupEntityManager customGroupEntityManager;
//
// @Override
// public void configure(SpringProcessEngineConfiguration springProcessEngineConfiguration) {
// springProcessEngineConfiguration.setUserEntityManager(customUserEntityManager);
// springProcessEngineConfiguration.setGroupEntityManager(customGroupEntityManager);
// /* // 自定义用户和组
// List<SessionFactory> customSessionFactories = new ArrayList<>();
// customSessionFactories.add(customUserEntityManagerFactory);
// customSessionFactories.add(customGroupEntityManagerFactory);
// springProcessEngineConfiguration.setCustomSessionFactories(customSessionFactories);*/
// }
//
// }
